package cn.com.dhcc.turbo.entity.registry;

import cn.com.dhcc.app.core.annotation.SiColumn;
import cn.com.dhcc.app.core.annotation.SiNotDbColumn;
import cn.com.dhcc.app.core.annotation.SiTable;
import cn.com.dhcc.app.core.base.ModuleFeatureBean;

/**
 * /** FTP用户
 */
@SiTable(name = "TURBO_FTP_USER")
public class FtpUser extends ModuleFeatureBean {
	@SiColumn(isId = true)
	private String userid; // 用户id
	private String userpassword; // 用户密码
	private String homedirectory; // 用户根目录
	private Integer enableflag; // 用户可用标记
	private Integer writepermission; // 是否有写权限
	private Long idletime; // 空闲连接时间
	private Long uploadrate; // 上传文件速率
	private Long downloadrate; // 下载文件速率
	private Long maxloginnumber; // 用户最大登录数
	private Long maxloginperip; // 每个ip最大登录数

	@SiNotDbColumn
	private String onlineShowStr;// 在先显示的字符串

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUserpassword() {
		return userpassword;
	}

	public void setUserpassword(String userpassword) {
		this.userpassword = userpassword;
	}

	public String getHomedirectory() {
		return homedirectory;
	}

	public void setHomedirectory(String homedirectory) {
		this.homedirectory = homedirectory;
	}

	public Integer getEnableflag() {
		return enableflag;
	}

	public void setEnableflag(Integer enableflag) {
		this.enableflag = enableflag;
	}

	public Integer getWritepermission() {
		return writepermission;
	}

	public void setWritepermission(Integer writepermission) {
		this.writepermission = writepermission;
	}

	public Long getIdletime() {
		return idletime;
	}

	public void setIdletime(Long idletime) {
		this.idletime = idletime;
	}

	public Long getUploadrate() {
		return uploadrate;
	}

	public void setUploadrate(Long uploadrate) {
		this.uploadrate = uploadrate;
	}

	public Long getDownloadrate() {
		return downloadrate;
	}

	public void setDownloadrate(Long downloadrate) {
		this.downloadrate = downloadrate;
	}

	public Long getMaxloginnumber() {
		return maxloginnumber;
	}

	public void setMaxloginnumber(Long maxloginnumber) {
		this.maxloginnumber = maxloginnumber;
	}

	public Long getMaxloginperip() {
		return maxloginperip;
	}

	public void setMaxloginperip(Long maxloginperip) {
		this.maxloginperip = maxloginperip;
	}

	public String getOnlineShowStr() {
		return onlineShowStr;
	}

	public void setOnlineShowStr(String onlineShowStr) {
		this.onlineShowStr = onlineShowStr;
	}

	@Override
	public String toString() {
		return "FtpUser [userid=" + userid + ", userpassword=" + userpassword
				+ ", homedirectory=" + homedirectory + ", enableflag="
				+ enableflag + ", writepermission=" + writepermission
				+ ", idletime=" + idletime + ", uploadrate=" + uploadrate
				+ ", downloadrate=" + downloadrate + ", maxloginnumber="
				+ maxloginnumber + ", maxloginperip=" + maxloginperip + "]";
	}
}
